package com.pureut.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.order.domain.SampleManagement;
import com.pureut.order.dto.SampleManagementDto;
import com.pureut.order.vo.OrderReviewVo;
import com.pureut.order.vo.SampleManagementVo;

import java.util.List;

public interface SampleManagementService extends IService<SampleManagement> {

    /**
     * 样品管理列表
     */
    List<SampleManagementDto> getList(SampleManagementVo sampleManagementVo);

    /**
     * 新增样品
     */
    boolean saveSample(SampleManagementVo sampleManagementVo) throws Exception;

    /**
     * 修改样品
     */
    boolean updateSample(SampleManagementVo sampleManagementVo);

    /**
     * 提交审核
     */
    boolean submitReview(Long id);

    /**
     * 撤销审核
     */
    boolean deleteReview(Long id);

    /**
     * 删除样品
     */
    boolean deleteSample(String ids);

    /**
     * 查看样品
     */
    SampleManagementDto getSampleById(Long id);

    /**
     * 样品审核
     */
    boolean sampleReview(OrderReviewVo orderReviewVo) throws Exception;
}
